package com.common.help.test18;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import cn.hutool.setting.Setting;

public class TestHuTool {

	@SuppressWarnings("unchecked")
	public static void main(String[] args) {
//		Setting set = new Setting("C:/Users/youxiang/Desktop/aaa.txt");
//		System.out.println(set.get("java", "spring"));
		
		
		Map<String,Object> map = new HashMap<>();
		
		List<String> list = new ArrayList<>();
		
		map.put("license", "台AAAAA");
		map.put("licenses", "台BBBBBB,台CCCCCC");
		
		for(Entry<String,Object> entry :map.entrySet()){
			System.out.println(entry.getValue());
		}
		list.add("台BBBBBB");
		list.add("台CCCCCC");
		map.put("licneses", list);
		for(Entry<String,Object> entry :map.entrySet()){
			System.out.println(entry.getKey());
			Object e = entry.getValue();
			if(e instanceof List){
				System.out.println("属于list集合");
				List<String> ss = (List<String>) e;
				for(String t: ss){
					System.out.println(t);
				}
				continue;
			}
			System.out.println(e);
		}
	}
}
